package cn.zhangxinyu.org.service;

import cn.zhangxinyu.basic.util.PageList;
import cn.zhangxinyu.org.domain.Department;
import cn.zhangxinyu.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    //查询一条 根据id
    Department loadById(Long id);
    //查询所有
    List<Department> loadAll();
    //新增
    void save(Department department);
    //删除
    void remove(Long id);
    //修改
    void update(Department department);

    //分页
    PageList<Department> queryData(DepartmentQuery query);
}
